package com.tjetc.service;

import com.tjetc.domain.RankRecord;
import com.tjetc.vo.RankDTO;
import com.tjetc.vo.Result;

public interface RankRecordService{


    int deleteByPrimaryKey(Integer id);

    int insert(RankRecord record);

    int insertSelective(RankRecord record);

    RankRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RankRecord record);

    int updateByPrimaryKey(RankRecord record);

    Result getRankVos(Integer id);

    Result getHospitalBuildingByPidAndHospitalName(Integer pid, String hospitalName,Integer scheduleId);

    Result getMyRankRecord(Integer pid, String hospitalName);
    Result getCurrentcallnumber(Integer scheduleId);


    //


    Result rank(RankDTO rankDTO);

    Result cancelRank(Integer rankId, Integer hid);

    Result getReportByRankId(Integer pid);

    Result getRankCount(String hospitalName);

    Result getRankRecordsBySid(Integer sid);

    Result jiaohao(Integer sid,Integer currentHao, Integer rid);

    Result zhenduan(Integer rid);

    Result getHaoAndZhen(Integer sid);

    Result jieshuzhenduan(Integer sid, Integer currentZhen, String result);

    Result getByNameandPage(String idCard, String name, Integer pageNum, Integer pageSize);

    Result payY(RankRecord rankRecord);

    Result getAllRankRecord();
}
